package com.pocketsweet.ui.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lidroid.xutils.ViewUtils;
import com.pocketsweet.R;
import com.pocketsweet.utils.ToolKits;

public class MessageFragment extends Fragment {
	private View rootView;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if (rootView == null) {
			ToolKits.toast(getActivity(), "message start");
			rootView = inflater.inflate(R.layout.fragment_message, null);
		}
		ViewGroup parent = (ViewGroup) rootView.getParent();
		if (parent != null) {
			parent.removeView(rootView);
		}
		ViewUtils.inject(this, rootView);
		initView();
		return rootView;
	}

	private void initView() {
		
	}
}